package com.mentaleye.controller;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Administrator on 2017/6/10.
 */
        //ueditor过滤
        public class CommonsMultiparResolver extends  org.springframework.web.multipart.commons.CommonsMultipartResolver{
            @Override
            public boolean isMultipart(HttpServletRequest request){
                String uri=request.getRequestURI();
                if(uri.indexOf("edit/config")>0){
                    System.out.println("CommonsMultiparResolver放行");
                    return false;
                }
                //System.out.println("CommonsMultiparResolver拦截");
                return super.isMultipart(request);
            }

        }
